package cn.example.vip.mall.seckill.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("seckill_activity")
@Table
public class SeckillActivity implements Serializable {
	@TableField(exist = false)
	private static final long serialVersionUID = 1L;
	@TableId(type = IdType.ASSIGN_UUID)
	private String id;
	@Column(name = "activity_name")
	private String activityName;
	private Integer type;	// 活动分类 0:shop秒杀，1：每日特价，2：大牌闪购，3：品类秒杀，4：节日活动
	@Column(name = "start_time")
	private Date startTime;
	@Column(name = "end_time")
	private Date endTime;
	
}
